package com.walkline.weibo.dao;

import org.json.me.JSONObject;

import com.walkline.weibo.WeiboException;
import com.walkline.weibo.WeiboSDK;
import com.walkline.weibo.inf.Tag;

public class WeiboTag extends WeiboObject implements Tag
{
	private int _id = 0;
	private String _tag = "";
	private int _count = 0;

	public WeiboTag(WeiboSDK weibo, JSONObject jsonObject) throws WeiboException 
	{
		super(weibo, jsonObject);

		JSONObject tag = jsonObject;
		if (tag != null)
		{
			_id = tag.optInt("id");
			_tag = tag.optString("tag");
			_count = tag.optInt("count");
		}
	}

	public int getId() {return _id;}

	public String getIdStr() {return String.valueOf(_id);}

	public String getTag() {return _tag;}

	public int getCount() {return _count;}
}